num = int(input())
a = num % 10
b = num // 100
if a == b:
    print("Yes")
else:
    print("No")